-
Home
-
Classified Listing – AI-Powered Classified ads & Business Directory Plugin
-
4.0.2
-
Code
-
Classes
- Cart
| Total Complexity |
50 |
| Dependencies |
3 |
| Dependents |
1 |
| Total lines |
384 |
| Lines of code |
179 |
| Logical lines of code |
105 |
| Comment lines |
127 |
| Methods |
20 |
| Properties |
4 |
Methods 20
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_cart_from_session() |
A |
52 |
9 |
22 |
| generate_cart_id() |
S |
56 |
7 |
18 |
| add_to_cart() |
S |
51 |
4 |
27 |
| calculate_totals() |
S |
56 |
4 |
18 |
| set_cart_cookies() |
S |
66 |
3 |
8 |
| get_cart() |
S |
63 |
3 |
10 |
| get_cart_for_session() |
S |
64 |
3 |
10 |
| maybe_set_cart_cookies() |
S |
78 |
2 |
4 |
| update_session() |
S |
71 |
2 |
6 |
| remove_item() |
S |
64 |
2 |
10 |
| get_checkout_url() |
S |
73 |
2 |
4 |
| __construct() |
S |
65 |
1 |
8 |
| load_cart_init() |
S |
83 |
1 |
3 |
| get_items() |
S |
81 |
1 |
3 |
| get_subtotal() |
S |
75 |
1 |
4 |
| get_total() |
S |
75 |
1 |
4 |
| get_item_subtotal() |
S |
69 |
1 |
6 |
| empty_cart() |
S |
67 |
1 |
8 |
| is_empty() |
S |
79 |
1 |
3 |
| needs_payment() |
S |
78 |
1 |
3 |